package pl.edu.amu.wmi.kino.visualjavafx.model.objects.shapes;

import pl.edu.amu.wmi.kino.visualjavafx.model.objects.VisualObject;


// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.1E12F265-A931-EE64-F68E-AEC3E5F385CE]
// </editor-fold> 
public class Circle extends Elipse implements java.io.Serializable{
    
    private double radious;


    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.6F429BBA-8B84-3C2D-320E-873DE96889C0]
    // </editor-fold> 
    public Circle () {
    }

    public double getRadious(){
        return this.radious;
    }

    public void setRadious(double val){
        this.setSizeH(val*2);
        this.setSizeV(val*2);

        double oldVal = this.radious;
        this.radious=val;
        propertySupport.firePropertyChange( "radious" , new Double(oldVal), new Double(val));
    }
    @Override
    public VisualObject shallowClone(){
        Circle res = (Circle) super.shallowClone();
        res.radious=this.radious;
        return res;
    }

}

